package com._520it.crm.service;

import com._520it.crm.domain.UnderWriting;
import com._520it.crm.page.PageResult;
import com._520it.crm.query.UnderWritingQueryObject;

import java.util.List;
import java.util.Map;

public interface IUnderWritingService {
    int insert(UnderWriting record);

    UnderWriting selectByOrderBillId(Long id);

    List<UnderWriting> selectAll();

    int updateByPrimaryKey(UnderWriting record);

    PageResult queryPage(UnderWritingQueryObject qo);

    int updatePassStatus(Long underWritingId, String comments);

    int updateNotPassStatus(Long underWritingId, String suggestions);

    PageResult queryApprovedPage(UnderWritingQueryObject qo);

    Map<String,String> querySuggestions(Long orderBillId);
}
